package com.geely.design.pattern.behavioral.state;

public class StopState extends CourseVideoState {
    @Override
    public void play() {
        super.courseVideoContext.setCourseVideoState(CourseVideoContext.SPEED_STATE);
    }

    @Override
    public void pause() {
        System.out.println("ERR!停止状态下,不能切换到暂停");
    }

    @Override
    public void speed() {
        System.out.println("ERR!停止状态下,不能切换到加速");
    }

    @Override
    public void stop() {
        System.out.println("停止播放视频...");
    }
}
